<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.box {
				width: 100%;
				/* width: 1920px;
				height: 1080px; */
				background-color: aliceblue;
				aspect-ratio: 16 / 9;
				position: relative;
			}
			.d1 {
				position: absolute;
				left: 10%;
				top: 50%;
				width: 100px;
				height: 100px;
				background-color: aquamarine;
			}
			.d2 {
				position: absolute;
				left: 80%;
				top: 60%;
				width: 100px;
				height: 100px;
				background-color: cornflowerblue;
			}
			.d3 {
				position: absolute;
				left: 30%;
				top: 20%;
				width: 100px;
				height: 100px;
				background-color: coral;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<div class="d1"></div>
			<div class="d2"></div>
			<div class="d3"></div>
		</div>
		
		<script>
			const box = document.querySelector(".box");
			const { width } = box.getBoundingClientRect();
			// console.log( window.innerWidth);
			box.style.transform = `scale(${ width / window.innerWidth })`; 
		</script>
	</body>
</html>